package com.tiancheng.trade.authserver.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tiancheng.trade.authserver.entity.UserThirdInfo;
import com.tiancheng.trade.authserver.enums.ThirdPlatformEnums;

import java.util.List;

/**
 * @Author: likailun
 * @Description: 第三方应用登录service
 * @Date: create in 2024/10/21 17:18
 */
public interface IUserThirdInfoService extends IService<UserThirdInfo> {
    UserThirdInfo getByClientIdAndUserId(ThirdPlatformEnums platform, String clientId, Long userId);

    /**
     * 查询用户的所有第三方登录信息
     * @param userId 用户id
     * @return
     */
    List<UserThirdInfo> getByUserId(Long userId);

}
